package com.mihu.stmall.manager.service;

import com.github.pagehelper.PageInfo;
import com.mihu.stmall.manager.entiy.Category;

import java.util.List;


//用于规定分类的相关操作
public interface CategoryService {
//    添加
    int add(Category category) throws Exception;
//    删除
    int remove(Integer id) throws Exception;
//    修改
    int edit(Category category) throws Exception;
//        查询
    Category getById(Integer id);
    //搜索
    List<Category> search(Category category);

//分页搜索
    PageInfo searchByPage(Integer page, Integer limit, Category category);

}
